<template>
  <div class="min-h-screen bg-blue-500 flex items-center justify-center">
    <div class="text-center text-white">
      <h1 class="text-3xl font-bold mb-4">乐业派</h1>
      <p class="text-lg mb-8">自由职业者服务平台</p>
      <div class="animate-spin rounded-full h-12 w-12 border-b-2 border-white mx-auto"></div>
    </div>
  </div>
</template>

<script setup>
// 检查是否已登录
onMounted(() => {
  const userToken = localStorage.getItem('userToken')

  if (userToken) {
    // 已登录，跳转到个人中心
    navigateTo('/profile')
  } else {
    // 未登录，跳转到登录页
    navigateTo('/login')
  }
})
</script>

